package com.qf.param;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * --- 万物归集  不随你我 ---
 * <p>
 * 快捷短语
 * main ==  public static void main(String[] args);
 * sout ==  System.out.println();
 *
 * @author shuhan
 * @date 2025/6/9
 * @desc
 */
@Data
public class RegisterParam {

    @NotBlank(message = "用户名不能为空")
    private String userName;
    @NotBlank(message = "密码不能为空")
    private String password;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入合法的手机号")
    private String phone;
    @Pattern(regexp = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$", message = "请输入合法的邮箱")
    private String email;
    @NotBlank(message = "验证码不能为空")
    private String code;

}
